FROM openjdk:8-jdk-alpine
MAINTAINER didi
EXPOSE 8000
VOLUME ["/gulimall-ware"]
COPY ./target/gulimall_ware.jar gulimall_ware.jar
ENV TZ=Asia/Shanghai
RUN sh -c 'touch /gulimall_ware.jar' && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENTRYPOINT ["java","-jar","/gulimall_ware.jar", "&"]